<?php

/**
 * textblocks actions.
 *
 * @package    sf_sandbox
 * @subpackage textblocks
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 2288 2006-10-02 15:22:13Z fabien $
 */
class textblocksActions extends autotextblocksActions
{

    protected function saveTextblocks($textblocks)
    {
            $textblocks->setCulture($this->getUser()->getCulture());
            $textblocks->setName($this->getRequestParameter('textblocks[name]'));
            $textblocks->setText($this->getRequestParameter('textblocks[text]'));
            $textblocks->save();
    }

    protected function updateTextblocksFromRequest()
    {
        $textblocks = $this->getRequestParameter('textblocks');

        /*if (isset($news['culture']))
        {
        $this->news->setCulture($news['culture']);
        }
        if (isset($news['name']))
        {
        $this->news->setName($news['name']);
        }*/
    }

}
